home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Remove from TMap.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Remove from TMap
  2. Sent:        6/14/96 4:01 AM
  3. Received:    6/14/96 9:17 AM
  4. From:        Jim Lloyd, jim@melongem.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 11:09 AM 6/14/96, Steinar.Tyvand@si.sintef.no wrote:
  9. >Thank You for a dissapointing answer!
  10. >
  11. >Can I subclass the TMap in some way to add a remove function?
  12.  
  13. No, unfortunately you can't do it without modifying ODFLibrary (which you
  14. must not do!).  You might instead copy the source code from
  15. SLSrtArr.[h,cpp] and FWTMap.[h,tpp], and rename all the functions and
  16. template classes.  You can then add a new function to your renamed SLSrtArr
  17. functions, and call that function from your renamed FW_TMap.  If you decide
  18. to do this, and a little bit of template code bloat is not an issue to you,
  19. you might want to merge all of the code into one template class.  Instead
  20. of calling SLSrtArr functions from FW_TMap, simply copy the code from these
  21. functions into your renamed FW_TMap.
  22.  
  23. Jim Lloyd
  24.  
  25.  
  26.